import { setStore, getStore } from '@/config/mUtils'
import {
	GET_USERINFO
} from './mutation-types.js'

export default {

	async getUserInfo({
		commit,
		state
	}) {
		let res = await getUser();
		commit(GET_USERINFO, res)
	},
	
	async getUserInfo({
		commit,
		state
	}) {
		let res = await getStore('userInfo');
		commit(GET_USERINFO, JSON.parse(res))
	},
}